﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARR.Entities.ComponentModel;
using ARR.Entities.Validation;
using System.Runtime.Serialization;
using System.Collections.ObjectModel;

namespace ARR.Entities
{
    public partial class Category
    {
        [DataMember]
        public List<Category> SubCategories { get; set; }

        [DataMember]
        public CategoryUniverse Universe { get; set; }

        [DataMember]
        public CategoryRole Role { get; set; }

        public string DisplayName
        {
            get
            {
                return string.Format("{0} - {1}", Code, Name);
            }
        }
    }
}
